import { request } from '@boeyo/portal';

/**
 * 获取租户下拉选项
 */
export const fetchTenantOptions = () => {
  return request({
    url: 'license/tenantOption',
  });
};

/**
 * 登录
 */
export const tenantLogin = (data) => {
  return request({
    url: 'tenant/login',
    method: 'post',
    data,
  });
};

/**
 *
 * @returns 获取登录页验证码
 */
export const fetchCodeImageApi = () => {
  return request({
    baseURL: '/api',
    url: '/captchaImage',
  });
};
